home *** CD-ROM | disk | FTP | other *** search
/ How Many Bugs in a Box / How Many Bugs in a Box.cdr / bugs / jukebox / 00094.ls < prev    next >
Encoding:
Text File  |  1995-03-28  |  663 b   |  27 lines

  1. on mouseDown
  2.   set castigate to the number of cast "quitbox2"
  3.   set the castNum of sprite the clickOn to castigate
  4.   startTimer()
  5.   set tstep to 10
  6.   repeat while the mouseDown
  7.     set ttime to the timer / tstep
  8.     if ttime < 4 then
  9.       set the castNum of sprite the clickOn to the number of cast ("quitbox" & ttime + 1)
  10.       updateStage()
  11.     end if
  12.   end repeat
  13.   startTimer()
  14.   set ttime to 0
  15.   repeat while ttime < 4
  16.     set ttime to the timer / tstep
  17.     if ttime < 4 then
  18.       set the castNum of sprite the clickOn to the number of cast ("quitbox" & 4 - ttime)
  19.       updateStage()
  20.     end if
  21.   end repeat
  22. end
  23.  
  24. on mouseUp
  25.   forget(window "Jukebox")
  26. end
  27.